package at.dcmspl;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.Id;

/**
 *
 * @author Hannes Stornig, Gosch Daniel
 */
@Entity
public class FileCounter implements Serializable {
    private static final long serialVersionUID = 1L;
    
    public static final long ID = 0;
	
    @Id
    private Long id = ID;
    long counterstate;
    

    public long getCounterstate() {
        return counterstate;
    }
    
    public void setCounterstate(long counterstate) {
        this.counterstate = counterstate;
    }
    
    public Long getId() { return id; }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        if (!(object instanceof FileCounter)) {
            return false;
        }
        FileCounter other = (FileCounter) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "at.dcmspl.FileCounter[ id=" + id + " ]";
    }
    
}
